package top.pengdong.pictureShare.mail.controller;

import org.springframework.web.bind.annotation.*;
import top.pengdong.pictureShare.common.model.R;
import top.pengdong.pictureShare.mail.service.MailService;

import javax.annotation.Resource;

/**
 * @description:
 * @projectName: pictureShare
 * @see: top.pengdong.pictureShare.mail.controller
 * @author: pc
 * @createTime: 2022/4/18 22:37
 * @version: 1.0
 */
@RestController
@RequestMapping("/mail")
public class MailController {

	@Resource
	private MailService mailService;

	@PostMapping("/send")
	public R sendMailForActivationAccount(@RequestParam(value = "activationUrl") String activationUrl, @RequestParam(value = "mail") String mail) {
		return mailService.sendMailForActivationAccount(activationUrl, mail);
	}
}
